<div class="usuarios view">
<h2><?php  echo __('Usuario'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($usuario['Usuario']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Grupo'); ?></dt>
		<dd>
			<?php echo $this->Html->link($usuario['Grupo']['id'], array('controller' => 'grupos', 'action' => 'view', $usuario['Grupo']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nome'); ?></dt>
		<dd>
			<?php echo h($usuario['Usuario']['nome']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($usuario['Usuario']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Usuario'); ?></dt>
		<dd>
			<?php echo h($usuario['Usuario']['usuario']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Senha'); ?></dt>
		<dd>
			<?php echo h($usuario['Usuario']['senha']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Usuario'), array('action' => 'edit', $usuario['Usuario']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Usuario'), array('action' => 'delete', $usuario['Usuario']['id']), null, __('Are you sure you want to delete # %s?', $usuario['Usuario']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Usuarios'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Usuario'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Grupos'), array('controller' => 'grupos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Grupo'), array('controller' => 'grupos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Criticas'), array('controller' => 'criticas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Critica'), array('controller' => 'criticas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Locacoes'), array('controller' => 'locacoes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Locacao'), array('controller' => 'locacoes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Participans'), array('controller' => 'participans', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Participam'), array('controller' => 'participans', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Criticas'); ?></h3>
	<?php if (!empty($usuario['Critica'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Valor'); ?></th>
		<th><?php echo __('Filme Id'); ?></th>
		<th><?php echo __('Usuario Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($usuario['Critica'] as $critica): ?>
		<tr>
			<td><?php echo $critica['id']; ?></td>
			<td><?php echo $critica['valor']; ?></td>
			<td><?php echo $critica['filme_id']; ?></td>
			<td><?php echo $critica['usuario_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'criticas', 'action' => 'view', $critica['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'criticas', 'action' => 'edit', $critica['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'criticas', 'action' => 'delete', $critica['id']), null, __('Are you sure you want to delete # %s?', $critica['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Critica'), array('controller' => 'criticas', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Locacoes'); ?></h3>
	<?php if (!empty($usuario['Locacao'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Midia Id'); ?></th>
		<th><?php echo __('Usuario Id'); ?></th>
		<th><?php echo __('Data'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($usuario['Locacao'] as $locacao): ?>
		<tr>
			<td><?php echo $locacao['id']; ?></td>
			<td><?php echo $locacao['midia_id']; ?></td>
			<td><?php echo $locacao['usuario_id']; ?></td>
			<td><?php echo $locacao['data']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'locacoes', 'action' => 'view', $locacao['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'locacoes', 'action' => 'edit', $locacao['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'locacoes', 'action' => 'delete', $locacao['id']), null, __('Are you sure you want to delete # %s?', $locacao['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Locacao'), array('controller' => 'locacoes', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Participans'); ?></h3>
	<?php if (!empty($usuario['Participam'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Usuario Id'); ?></th>
		<th><?php echo __('Mes'); ?></th>
		<th><?php echo __('Ano'); ?></th>
		<th><?php echo __('Ativo'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($usuario['Participam'] as $participam): ?>
		<tr>
			<td><?php echo $participam['id']; ?></td>
			<td><?php echo $participam['usuario_id']; ?></td>
			<td><?php echo $participam['mes']; ?></td>
			<td><?php echo $participam['ano']; ?></td>
			<td><?php echo $participam['ativo']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'participans', 'action' => 'view', $participam['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'participans', 'action' => 'edit', $participam['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'participans', 'action' => 'delete', $participam['id']), null, __('Are you sure you want to delete # %s?', $participam['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Participam'), array('controller' => 'participans', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
